package com.moonLight.weblog.web.event;

import com.moonLight.weblog.common.domain.dos.BlogSettingsDO;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;
@Getter
public class PublishCommentEvent extends ApplicationEvent {
    /**
     * 新增的评论区的ID
     * @param source
     */
    private Long commentId;
    /**
     * 个人博客的设置详情
     */
    private BlogSettingsDO blogSettingsDO;
    public PublishCommentEvent(Object source,Long commentId,BlogSettingsDO blogSettingsDO) {
        super(source);
        this.commentId = commentId;
        this.blogSettingsDO = blogSettingsDO;
    }
}
